}
if target.get_profile().is_test() {
- cx.compilation.tests.push((target.get_name().into_string(), dst));
+ cx.compilation.tests.push((target.get_name().to_string(), dst));
} else if target.is_bin() {
cx.compilation.binaries.push(dst);
} else if target.is_lib() {
fn debug_string(&self) -> String {
let program = String::from_utf8_lossy(self.program.as_bytes_no_nul());
- let mut program = program.into_string();
+ let mut program = program.to_string();
for arg in self.args.iter() {
program.push(' ');
let s = String::from_utf8_lossy(arg.as_bytes_no_nul());
let mut last = 0;
for (i, &(l, time, ref msg)) in msgs.iter().enumerate() {
if l != lvl { continue }
- println!("{} {:6}ms - {}", " ".repeat(lvl + 1),
- time / 1000000, msg);
+
+ let mut spaces = String::new();
+ for _ in range(0u, lvl + 1) {
+ spaces.push_str(" ");
+ }
+
+ println!("{} {:6}ms - {}", spaces, time / 1000000, msg);
print(lvl + 1, msgs.slice(last, i));
last = i;